import Cookies from 'js-cookie'
import cache from '@/plugins/cache'
const TokenKey = 'Admin-Token'
let Base64 = require('js-base64').Base64;
export function getToken() {
  //return Cookies.get(TokenKey)
  return cache.session.get(TokenKey)
}

export function setToken(token) {
  return cache.session.set(TokenKey, token )
  //return cache.session.set(TokenKey, token )
}

export function removeToken() {
  return cache.session.remove(TokenKey)
  //return cache.session.remove(TokenKey)
}
